# 登录：
# 地址：http://kdtx-test.itheima.net/api/login
# 方法：Post
# 请求数据：
# 请求头：Content-Type:application/json
# 请求体：
# {"username":"admin","password":"admin123","code":"2","uuid":"验证码接口返回数据"}

import requests


url_1="http://kdtx-test.itheima.net/api/login"
headers={
        "Content-Type":"application/json"
}
login_data={"username":"admin",
            "password":"HM_2023_test",
            "code":"2",
            "uuid":"51b686b646f049fe9a4625e84c1e8148"}

resp = requests.post(url=url_1,headers=headers,json=login_data)
print(resp.json())

